# Maintainer: Waweic <waweic@activ.ism.rocks>
pkgname=uxn
pkgver=0_git20221211
_commit="6317b5cf181e56253da10e0e5051ac75bbb5c4b2"
pkgrel=0
pkgdesc="An assembler and emulator for the Uxn stack-machine"
url="https://wiki.xxiivv.com/site/uxn.html"
arch="all"
license="MIT"
makedepends="sdl2-dev"
subpackages="$pkgname-doc"
options="!check" #Tests not working yet
source="$pkgname-$_commit.tar.gz::https://git.sr.ht/~rabbits/uxn/archive/$_commit.tar.gz"

builddir="$srcdir"/$pkgname-$_commit
build() {
	HOME=$(mktemp -d) ./build.sh --no-run
}

package() {
	install -Dm 755 -t "$pkgdir"/usr/bin/ "bin/uxnasm"
	install -Dm 755 -t "$pkgdir"/usr/bin/ "bin/uxnemu"
	install -Dm 755 -t "$pkgdir"/usr/bin/ "bin/uxncli"

	install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}

sha512sums="
d59504f994b487aff151fefdb2f0f87a707fe998c1ea08539dc8d67aed28a4c93c9ff4bde036a9eb44401e8e6a12b7a15c17e434d5cab7b44a17e2e18e50e978  uxn-6317b5cf181e56253da10e0e5051ac75bbb5c4b2.tar.gz
"
